import type { GeneratedEtsLibFile } from "../../types/generated";

export const FILE: GeneratedEtsLibFile = {
  path: 'ets/api/@ohos.file.photoAccessHelper.d.ts',
  content: "/*\n * Copyright (C) 2023 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @file Helper functions to access image and video assets\n * @kit MediaLibraryKit\n */\nimport type { AsyncCallback, Callback } from './@ohos.base';\nimport type Context from './application/Context';\nimport type image from './@ohos.multimedia.image';\nimport type dataSharePredicates from './@ohos.data.dataSharePredicates';\n/**\n * Helper functions to access image and video assets\n *\n * @namespace photoAccessHelper\n * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n * @since 10\n */\n/**\n * Helper functions to access image and video assets\n *\n * @namespace photoAccessHelper\n * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n * @atomicservice\n * @since 11\n */\n/**\n * Helper functions to access image and video assets\n *\n * @namespace photoAccessHelper\n * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare namespace photoAccessHelper {\n    /**\n     * Obtains a PhotoAccessHelper instance for accessing and modifying media files in the album.\n     *\n     * @param { Context } context - Context of the ability instance.\n     * @returns { PhotoAccessHelper } Instance of PhotoAccessHelper\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @StageModelOnly\n     * @since 10\n     */\n    /**\n     * Obtains a PhotoAccessHelper instance for accessing and modifying media files in the album.\n     *\n     * @param { Context } context - Context of the ability instance.\n     * @returns { PhotoAccessHelper } Instance of PhotoAccessHelper\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @StageModelOnly\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Obtains a PhotoAccessHelper instance for accessing and modifying media files in the album.\n     *\n     * @param { Context } context - Context of the ability instance.\n     * @returns { PhotoAccessHelper } Instance of PhotoAccessHelper\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @StageModelOnly\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    function getPhotoAccessHelper(context: Context): PhotoAccessHelper;\n    /**\n     * Enumerates media file types.\n     *\n     * @enum { number } PhotoType\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @since 10\n     */\n    /**\n     * Enumerates media file types.\n     *\n     * @enum { number } PhotoType\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Enumerates media file types.\n     *\n     * @enum { number } PhotoType\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    enum PhotoType {\n        /**\n         * Image asset\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Image asset\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Image asset\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        IMAGE = 1,\n        /**\n         * Video asset\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Video asset\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Video asset\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        VIDEO\n    }\n    \n    /**\n     * Enumerates the PhotoAsset types.\n     *\n     * @enum { number } PhotoSubtype\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @atomicservice\n     * @since 12\n     */\n    enum PhotoSubtype {\n        \n        /**\n         * Default Photo Type\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 12\n         */\n        DEFAULT = 0,\n        /**\n         * Moving Photo Type\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 12\n         */\n        MOVING_PHOTO = 3,\n        /**\n         * Burst Photo Type\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 12\n         */\n        BURST = 4\n    }\n    /**\n     * Enumerates the formats for displaying media assets.\n     *\n     * @enum { number } DynamicRangeType\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @since 12\n     */\n    enum DynamicRangeType {\n        /**\n         * Standard dynamic range (SDR).\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 12\n         */\n        SDR = 0,\n        /**\n         * High dynamic range (HDR).\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 12\n         */\n        HDR = 1\n    }\n    \n    /**\n     * Enumerates the file locations.\n     *\n     * @enum { number } Photo asset position, such as local device or cloud\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @since 16\n     */\n    enum PositionType {\n        \n        /**\n         * Asset exists only in local device\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 16\n         */\n        LOCAL = 1,\n        \n        /**\n         * Stored only on the cloud.\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 16\n         */\n        CLOUD = 2,\n        /**\n         * Stored both on a local device and cloud.\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 16\n         */\n        LOCAL_AND_CLOUD = 3\n    }\n    /**\n     * Enumerates the types of recommended images.\n     *\n     * @enum { number } RecommendationType\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @atomicservice\n     * @since 11\n     */\n    enum RecommendationType {\n        /**\n         * QR_OR_BAR_CODE indicates that QR code or barcode photos can be recommended\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 11\n         */\n        QR_OR_BAR_CODE = 1,\n        /**\n         * QR_CODE indicates that QR code photos can be recommended\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 11\n         */\n        QR_CODE = 2,\n        /**\n         * BAR_CODE indicates that barcode photos can be recommended\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 11\n         */\n        BAR_CODE = 3,\n        /**\n         * ID_CARD indicates that QR code or barcode photos can be recommended\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 11\n         */\n        ID_CARD = 4,\n        /**\n         * PROFILE_PICTURE indicates that profile picture photos can be recommended\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 11\n         */\n        PROFILE_PICTURE = 5,\n        /**\n         * PASSPORT indicates that passport photos can be recommended\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 12\n         */\n        PASSPORT = 6,\n        /**\n         * BANK_CARD indicates that bank card photos can be recommended\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 12\n         */\n        BANK_CARD = 7,\n        /**\n         * DRIVER_LICENSE indicates that driver license photos can be recommended\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 12\n         */\n        DRIVER_LICENSE = 8,\n        /**\n         * DRIVING_LICENSE indicates that driving license photos can be recommended\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 12\n         */\n        DRIVING_LICENSE = 9,\n        /**\n         * FEATURED_SINGLE_PORTRAIT indicates that featured single portrait photos can be recommended\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 12\n         */\n        FEATURED_SINGLE_PORTRAIT = 10\n    }\n    /**\n     * Enumerates the asset delivery modes.\n     *\n     * @enum { number } DeliveryMode\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @since 11\n     */\n    enum DeliveryMode {\n        /**\n         * Fast mode.\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 11\n         */\n        FAST_MODE = 0,\n        /**\n         * High-quality mode.\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 11\n         */\n        HIGH_QUALITY_MODE = 1,\n        /**\n         * Balance mode.\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 11\n         */\n        BALANCE_MODE = 2\n    }\n    /**\n     * Enumerates the video transcoding mode.\n     *\n     * @enum { number } CompatibleMode\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @since 15\n     */\n    enum CompatibleMode {\n        /**\n         * Maintains the original video format.\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 15\n         */\n        ORIGINAL_FORMAT_MODE = 0,\n        /**\n         * Converts the HDR content to SDR format.\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 15\n         */\n        COMPATIBLE_FORMAT_MODE = 1\n    }\n    /**\n     * Data handler used to notify the progress of required media asset data\n     *\n     * @interface MediaAssetProgressHandler\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @since 15\n     */\n    interface MediaAssetProgressHandler {\n        /**\n         * Indicates the progress of required media asset data\n         *\n         * @param { number } progress - Progress in percentage. Value range: 0 to 100\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 15\n         */\n        onProgress(progress: number): void;\n    }\n    /**\n     * Enum: complete button text\n     *\n     * @enum { number } CompleteButtonText\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @atomicservice\n     * @since 14\n     */\n    enum CompleteButtonText {\n        /**\n         * Complete button text: done\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 14\n         */\n        TEXT_DONE = 0,\n        /**\n         * Complete button text: send\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 14\n         */\n        TEXT_SEND = 1,\n        /**\n         * Complete button text: add\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 14\n         */\n        TEXT_ADD = 2\n    }\n    /**\n     * Options to request media asset\n     *\n     * @interface RequestOptions\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @since 11\n     */\n    interface RequestOptions {\n        /**\n         * Indicates the delivery mode\n         *\n         * @type { DeliveryMode }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 11\n         */\n        deliveryMode: DeliveryMode;\n        /**\n         * Indicates the compatible mode\n         *\n         * @type { ?CompatibleMode }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 15\n         */\n        compatibleMode?: CompatibleMode;\n        /**\n         * data handler used to notify the progress of required media asset data\n         *\n         * @type { ?MediaAssetProgressHandler }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 15\n         */\n        mediaAssetProgressHandler?: MediaAssetProgressHandler;\n    }\n    /**\n     * Media asset handler, which can be used to customize the media asset processing logic in onDataPrepared.\n     *\n     * @interface MediaAssetDataHandler\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @since 11\n     */\n    interface MediaAssetDataHandler<T> {\n        /**\n         * Indicates required media asset data is prepared\n         *\n         * @param { T } data - the returned data of media asset\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 11\n         */\n        /**\n         * Indicates required media asset data is prepared\n         *\n         * @param { T } data - the returned data of media asset\n         * @param { Map<string, string> } [map] - additional information for the data\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 12\n         */\n        onDataPrepared(data: T, map?: Map<string, string>): void;\n    }\n    /**\n     * Data handler when quick request image is finished\n     *\n     * @typedef QuickImageDataHandler\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @since 13\n     */\n    interface QuickImageDataHandler<T> {\n        /**\n         * Indicates required media asset data quickly is prepared\n         *\n         * @param { T } data - the returned data of picture\n         * @param { image.ImageSource } imageSource - the returned data of imageSource\n         * @param { Map<string, string> } map - additional information for the data\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 13\n         */\n        onDataPrepared(data: T, imageSource: image.ImageSource, map: Map<string, string>): void;\n    }\n    /**\n     * A media asset manager class, used for manipulating the read and write operations of media assets.\n     *\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @since 11\n     */\n    /**\n     * A media asset manager class, used for manipulating the read and write operations of media assets.\n     *\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @atomicservice\n     * @since 14\n     */\n    class MediaAssetManager {\n        /**\n         * Request image\n         *\n         * @permission ohos.permission.READ_IMAGEVIDEO\n         * @param { Context } context - Context of the ability instance.\n         * @param { PhotoAsset } asset - Image to request.\n         * @param { RequestOptions } requestOptions - Options for requesting the image.\n         * @param { MediaAssetDataHandler<image.ImageSource> } dataHandler - Media asset handler, which invokes a callback to return the image when the requested image is ready.\n         * @returns { Promise<string> } Returns request id\n         * @throws { BusinessError } 201 - Permission denied\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @static\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 11\n         */\n        static requestImage(context: Context, asset: PhotoAsset, requestOptions: RequestOptions, dataHandler: MediaAssetDataHandler<image.ImageSource>): Promise<string>;\n        /**\n         * Requests an image quickly.\n         *\n         * @permission ohos.permission.READ_IMAGEVIDEO\n         * @param { Context } context - Context of the ability instance.\n         * @param { PhotoAsset } asset - Image to request.\n         * @param { RequestOptions } requestOptions - Options for requesting the image.\n         * @param { QuickImageDataHandler<image.Picture> } dataHandler - Media asset handler, which invokes a callback to return the image when the requested image is ready.\n         * @returns { Promise<string> } Returns request id\n         * @throws { BusinessError } 201 - Permission denied\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 14000011 - Internal system error\n         * @static\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 13\n         */\n        static quickRequestImage(context: Context, asset: PhotoAsset, requestOptions: RequestOptions, dataHandler: QuickImageDataHandler<image.Picture>): Promise<string>;\n        /**\n         * Requests image data.\n         *\n         * @permission ohos.permission.READ_IMAGEVIDEO\n         * @param { Context } context - Context of the ability instance.\n         * @param { PhotoAsset } asset - Image to request.\n         * @param { RequestOptions } requestOptions - Options for requesting the image.\n         * @param { MediaAssetDataHandler<ArrayBuffer> } dataHandler - Media asset handler, which invokes a callback to return the image when the requested image is ready.\n         * @returns { Promise<string> } Returns request id\n         * @throws { BusinessError } 201 - Permission denied\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @static\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 11\n         */\n        static requestImageData(context: Context, asset: PhotoAsset, requestOptions: RequestOptions, dataHandler: MediaAssetDataHandler<ArrayBuffer>): Promise<string>;\n        /**\n         * Requests a moving photo object, which can be used to request the asset data of the moving photo.\n         *\n         * @permission ohos.permission.READ_IMAGEVIDEO\n         * @param { Context } context - Context of the ability instance.\n         * @param { PhotoAsset } asset - Image to request.\n         * @param { RequestOptions } requestOptions - Options for requesting the image.\n         * @param { MediaAssetDataHandler<MovingPhoto> } dataHandler - Media asset handler, which invokes a callback to return the image when the requested image is ready.\n         * @returns { Promise<string> } Returns request id\n         * @throws { BusinessError } 201 - Permission denied\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @static\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 12\n         */\n        /**\n         * Requests a moving photo object, which can be used to request the asset data of the moving photo.\n         *\n         * @permission ohos.permission.READ_IMAGEVIDEO\n         * @param { Context } context - Context of the ability instance.\n         * @param { PhotoAsset } asset - Image to request.\n         * @param { RequestOptions } requestOptions - Options for requesting the image.\n         * @param { MediaAssetDataHandler<MovingPhoto> } dataHandler - Media asset handler, which invokes a callback to return the image when the requested image is ready.\n         * @returns { Promise<string> } Returns request id\n         * @throws { BusinessError } 201 - Permission denied\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported.\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @static\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 18\n         */\n        static requestMovingPhoto(context: Context, asset: PhotoAsset, requestOptions: RequestOptions, dataHandler: MediaAssetDataHandler<MovingPhoto>): Promise<string>;\n        /**\n         * Cancels a request for the asset, the callback of which has not been triggered yet.\n         *\n         * @permission ohos.permission.READ_IMAGEVIDEO\n         * @param { Context } context - Context of the ability instance.\n         * @param { string } requestId - ID of the request to cancel. It is a valid request ID returned by requestImage.\n         * @returns { Promise<void> } Returns void\n         * @throws { BusinessError } 201 - Permission denied\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @static\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 12\n         */\n        static cancelRequest(context: Context, requestId: string): Promise<void>;\n        /**\n         * Request video file\n         *\n         * @permission ohos.permission.READ_IMAGEVIDEO\n         * @param { Context } context - Context of the ability instance.\n         * @param { PhotoAsset } asset - Image to request.\n         * @param { RequestOptions } requestOptions - Options for requesting the video asset.\n         * @param { string } fileUri - the destination file uri to save the video data\n         * @param { MediaAssetDataHandler<boolean> } dataHandler - Media asset handler. When the requested video is written to the specified directory, a callback is triggered.\n         * @returns { Promise<string> } Returns request id\n         * @throws { BusinessError } 201 - Permission denied\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @static\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 12\n         */\n        /**\n         * Request video file\n         *\n         * @permission ohos.permission.READ_IMAGEVIDEO\n         * @param { Context } context - Context of the ability instance.\n         * @param { PhotoAsset } asset - Image to request.\n         * @param { RequestOptions } requestOptions - Options for requesting the video asset.\n         * @param { string } fileUri - the destination file uri to save the video data\n         * @param { MediaAssetDataHandler<boolean> } dataHandler - Media asset handler. When the requested video is written to the specified directory, a callback is triggered.\n         * @returns { Promise<string> } Returns request id\n         * @throws { BusinessError } 201 - Permission denied\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported.\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @static\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 15\n         */\n        static requestVideoFile(context: Context, asset: PhotoAsset, requestOptions: RequestOptions, fileUri: string, dataHandler: MediaAssetDataHandler<boolean>): Promise<string>;\n        /**\n         * Load moving photo\n         *\n         * @param { Context } context - AbilityContext or UIExtensionContext instance.\n         * @param { string } imageFileUri - image file uri of the moving photo to be loaded\n         * @param { string } videoFileUri - video file uri of the moving photo to be loaded\n         * @returns { Promise<MovingPhoto> } Returns moving photo\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 14000011 - Internal system error\n         * @static\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 12\n         */\n        /**\n         * Load moving photo\n         *\n         * @param { Context } context - AbilityContext or UIExtensionContext instance.\n         * @param { string } imageFileUri - image file uri of the moving photo to be loaded\n         * @param { string } videoFileUri - video file uri of the moving photo to be loaded\n         * @returns { Promise<MovingPhoto> } Returns moving photo\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 14000011 - Internal system error\n         * @static\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 14\n         */\n        static loadMovingPhoto(context: Context, imageFileUri: string, videoFileUri: string): Promise<MovingPhoto>;\n    }\n    /**\n     * Indicates the type of photo asset member.\n     *\n     * @typedef { number | string | boolean } MemberType\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @since 10\n     */\n    /**\n     * Indicates the type of photo asset member.\n     *\n     * @typedef { number | string | boolean } MemberType\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @crossplatform\n     * @since 12\n     */\n    type MemberType = number | string | boolean;\n    /**\n     * Provides APIs for encapsulating file asset attributes.\n     *\n     * @interface PhotoAsset\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @since 10\n     */\n    /**\n     * Provides APIs for encapsulating file asset attributes.\n     *\n     * @interface PhotoAsset\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Provides APIs for encapsulating file asset attributes.\n     *\n     * @interface PhotoAsset\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    interface PhotoAsset {\n        /**\n         * uri of the asset.\n         *\n         * @type { string }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * uri of the asset.\n         *\n         * @type { string }\n         * @readonly\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        readonly uri: string;\n        /**\n         * Photo type, image or video\n         *\n         * @type { PhotoType }\n         * @readonly\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Photo type, image or video\n         *\n         * @type { PhotoType }\n         * @readonly\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        /**\n         * Photo type, image or video\n         *\n         * @type { PhotoType }\n         * @readonly\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        readonly photoType: PhotoType;\n        /**\n         * Display name (with a file name extension) of the asset.\n         *\n         * @type { string }\n         * @readonly\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Display name (with a file name extension) of the asset.\n         *\n         * @type { string }\n         * @readonly\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        /**\n         * Display name (with a file name extension) of the asset.\n         *\n         * @type { string }\n         * @readonly\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        readonly displayName: string;\n        /**\n         * Obtains a PhotoAsset member parameter.\n         *\n         * @param { string } member - Photo asset member. for example : get(PhotoKeys.SIZE)\n         * @returns { MemberType } Returns the value of the specified photo asset member\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000014 - The provided member must be a property name of PhotoKey.\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Obtains a PhotoAsset member parameter.\n         *\n         * @param { string } member - Photo asset member. for example : get(PhotoKeys.SIZE)\n         * @returns { MemberType } Returns the value of the specified photo asset member\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000014 - The provided member must be a property name of PhotoKey.\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        /**\n         * Obtains a PhotoAsset member parameter.\n         *\n         * @param { string } member - Photo asset member. for example : get(PhotoKeys.SIZE)\n         * @returns { MemberType } Returns the value of the specified photo asset member\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000014 - The provided member must be a property name of PhotoKey.\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        get(member: string): MemberType;\n        /**\n         * Sets a PhotoAsset member parameter.\n         *\n         * @param { string } member - Photo asset member\n         * @param { string } value - The new value of the member.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000014 - The provided member must be a property name of PhotoKey.\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         * @example : set(PhotoKeys.TITLE, \"newTitle\"), call commitModify after set\n         */\n        set(member: string, value: string): void;\n        /**\n         * Commits the modification on the file metadata to the database. This API uses an asynchronous callback to return the result.\n         *\n         * @permission ohos.permission.WRITE_IMAGEVIDEO\n         * @param { AsyncCallback<void> } callback - Callback that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000001 - Invalid display name\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Commits the modification on the file metadata to the database. This API uses an asynchronous callback to return the result.\n         *\n         * @permission ohos.permission.WRITE_IMAGEVIDEO\n         * @param { AsyncCallback<void> } callback - Callback that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000001 - Invalid display name\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 11\n         */\n        commitModify(callback: AsyncCallback<void>): void;\n        /**\n         * Commits the modification on the file metadata to the database. This API uses a promise to return the result.\n         *\n         * @permission ohos.permission.WRITE_IMAGEVIDEO\n         * @returns { Promise<void> } Returns void\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000001 - Invalid display name\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Commits the modification on the file metadata to the database. This API uses a promise to return the result.\n         *\n         * @permission ohos.permission.WRITE_IMAGEVIDEO\n         * @returns { Promise<void> } Returns void\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000001 - Invalid display name\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 11\n         */\n        commitModify(): Promise<void>;\n        /**\n         * Opens this file in read-only mode. This API uses an asynchronous callback to return the result.\n         *\n         * @permission ohos.permission.READ_IMAGEVIDEO\n         * @param { AsyncCallback<number> } callback - Callback used to return the file descriptor (FD) of the file opened.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         * @deprecated since 11\n         */\n        getReadOnlyFd(callback: AsyncCallback<number>): void;\n        /**\n         * Opens this file in read-only mode. This API uses a promise to return the result.\n         *\n         * @permission ohos.permission.READ_IMAGEVIDEO\n         * @returns { Promise<number> } Returns the read only fd\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         * @deprecated since 11\n         */\n        getReadOnlyFd(): Promise<number>;\n        /**\n         * Closes a file. This API uses an asynchronous callback to return the result.\n         *\n         * @param { number } fd - FD of the file to close.\n         * @param { AsyncCallback<void> } callback - Callback that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         * @deprecated since 11\n         */\n        close(fd: number, callback: AsyncCallback<void>): void;\n        /**\n         * Closes a file. This API uses a promise to return the result.\n         *\n         * @param { number } fd - FD of the file to close.\n         * @returns { Promise<void> } Returns void\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         * @deprecated since 11\n         */\n        close(fd: number): Promise<void>;\n        /**\n         * Obtains the thumbnail of this file. This API uses an asynchronous callback to return the result.\n         *\n         * @permission ohos.permission.READ_IMAGEVIDEO\n         * @param { AsyncCallback<image.PixelMap> } callback - Callback used to return the PixelMap of the thumbnail.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        getThumbnail(callback: AsyncCallback<image.PixelMap>): void;\n        /**\n         * Obtains the file thumbnail of the given size. This API uses an asynchronous callback to return the result.\n         *\n         * @permission ohos.permission.READ_IMAGEVIDEO\n         * @param { image.Size } size - Size of the thumbnail.\n         * @param { AsyncCallback<image.PixelMap> } callback - Callback used to return the PixelMap of the thumbnail.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        getThumbnail(size: image.Size, callback: AsyncCallback<image.PixelMap>): void;\n        /**\n         * Obtains the file thumbnail of the given size. This API uses a promise to return the result.\n         *\n         * @permission ohos.permission.READ_IMAGEVIDEO\n         * @param { image.Size } [size] - Size of the thumbnail.\n         * @returns { Promise<image.PixelMap> } Returns the thumbnail's pixelMap.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        getThumbnail(size?: image.Size): Promise<image.PixelMap>;\n        /**\n         * Clone asset.\n         *\n         * @permission ohos.permission.WRITE_IMAGEVIDEO\n         * @param { string } title - The title of asset.\n         * @returns { Promise<PhotoAsset> } Returns asset\n         * @throws { BusinessError } 201 - Permission denied\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 14000011 - Internal system error. It is recommended to retry and check the logs.\n         * <br>Possible causes: 1. Database corrupted; 2. The file system is abnormal; 3. The IPC request timed out.\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 14\n         */\n        clone(title: string): Promise<PhotoAsset>;\n    }\n    /**\n     * Enumeration of photo asset members\n     *\n     * @enum { string } PhotoKeys\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @since 10\n     */\n    /**\n     * Enumeration of photo asset members\n     *\n     * @enum { string } PhotoKeys\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @crossplatform\n     * @since 12\n     */\n    /**\n     * Enumeration of photo asset members\n     *\n     * @enum { string } PhotoKeys\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @atomicservice\n     * @since 20\n     */\n    enum PhotoKeys {\n        /**\n         * Asset uri, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Asset uri, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        URI = 'uri',\n        /**\n         * Photo type of the asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Photo type of the asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        /**\n         * Photo type of the asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        PHOTO_TYPE = 'media_type',\n        /**\n         * Asset name, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Asset name, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        /**\n         * Asset name, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        DISPLAY_NAME = 'display_name',\n        /**\n         * Size of the asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Size of the asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        /**\n         * Size of the asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        SIZE = 'size',\n        /**\n         * Creation date of the asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Creation date of the asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        /**\n         * Creation date of the asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        DATE_ADDED = 'date_added',\n        /**\n         * Modified date of the asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Modified date of the asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        DATE_MODIFIED = 'date_modified',\n        /**\n         * Duration of video files, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Duration of video files, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        /**\n         * Duration of video files, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        DURATION = 'duration',\n        /**\n         * Width of the image asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Width of the image asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        /**\n         * Width of the image asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        WIDTH = 'width',\n        /**\n         * Height of the image asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Height of the image asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        /**\n         * Height of the image asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        HEIGHT = 'height',\n        /**\n         * Date taken of the asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Date taken of the asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        /**\n         * Date taken of the asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n    \n         */\n        DATE_TAKEN = 'date_taken',\n        /**\n         * Orientation of the image asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Orientation of the image asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        /**\n         * Orientation of the image asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        ORIENTATION = 'orientation',\n        /**\n         * Favorite state of the asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Favorite state of the asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        /**\n         * Favorite state of the asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        FAVORITE = 'is_favorite',\n        /**\n         * Title of the asset\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Title of the asset\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        /**\n         * Title of the asset\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        TITLE = 'title',\n        \n        /**\n         * Asset position, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 16\n         */\n        /**\n         * Asset position, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 20\n         */\n        POSITION = 'position',\n        /**\n         * Creation time of the asset in milliseconds, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 12\n         */\n        /**\n         * Creation time of the asset in milliseconds, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 20\n         */\n        DATE_ADDED_MS = 'date_added_ms',\n        /**\n         * Modified time of the asset in milliseconds, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 12\n         */\n        /**\n         * Modified time of the asset in milliseconds, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 20\n         */\n        DATE_MODIFIED_MS = 'date_modified_ms',\n        /**\n         * Photo subtype of the asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 12\n         */\n        /**\n         * Photo subtype of the asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 20\n         */\n        PHOTO_SUBTYPE = 'subtype',\n        /**\n         * Dynamic range type of the asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 12\n         */\n        /**\n         * Dynamic range type of the asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 20\n         */\n        DYNAMIC_RANGE_TYPE = 'dynamic_range_type',\n        /**\n         * Cover position of the asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 12\n         */\n        /**\n         * Cover position of the asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 20\n         */\n        COVER_POSITION = 'cover_position',\n        /**\n         * Unique uuid of the burst photos, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 12\n         */\n        /**\n         * Unique uuid of the burst photos, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 20\n         */\n        BURST_KEY = 'burst_key',\n        /**\n         * Width and height information of lcd picture, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 12\n         */\n        /**\n         * Width and height information of lcd picture, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 20\n         */\n        LCD_SIZE = 'lcd_size',\n        /**\n         * Width and height information of thumbnail picture, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 12\n         */\n        /**\n         * Width and height information of thumbnail picture, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 20\n         */\n        THM_SIZE = 'thm_size',\n        /**\n         * Detail time of the asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 13\n         */\n        /**\n         * Detail time of the asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 20\n         */\n        DETAIL_TIME = 'detail_time',\n        /**\n         * Date taken of the asset in milliseconds, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 13\n         */\n        /**\n         * Date taken of the asset in milliseconds, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 20\n         */\n        DATE_TAKEN_MS = 'date_taken_ms',\n        /**\n         * Suffix of the asset, read only\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 18\n         */\n        MEDIA_SUFFIX = 'media_suffix'\n    }\n    /**\n     * Enumerates the key album attributes.\n     *\n     * @enum { string } AlbumKeys\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @since 10\n     */\n    /**\n     * Enumerates the key album attributes.\n     *\n     * @enum { string } AlbumKeys\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @crossplatform\n     * @since 12\n     */\n    enum AlbumKeys {\n        /**\n         * URI of the album.\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * URI of the album.\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        /**\n         * URI of the album.\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 20\n         */\n        URI = 'uri',\n        /**\n         * Name of the album.\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Name of the album.\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        ALBUM_NAME = 'album_name'\n    }\n    /**\n     * Defines the options for fetching media files.\n     *\n     * @interface FetchOptions\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @since 10\n     */\n    /**\n     * Defines the options for fetching media files.\n     *\n     * @interface FetchOptions\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @crossplatform\n     * @since 12\n     */\n    /**\n     * Defines the options for fetching media files.\n     *\n     * @interface FetchOptions\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 20\n     */\n    interface FetchOptions {\n        /**\n         * Indicates the members to query.\n         *\n         * @type { Array<string> }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Indicates the members to query.\n         *\n         * @type { Array<string> }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        /**\n         * Indicates the members to query.\n         *\n         * @type { Array<string> }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        fetchColumns: Array<string>;\n        /**\n         * Predicates that specify the fetch criteria.\n         *\n         * @type { dataSharePredicates.DataSharePredicates }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Predicates that specify the fetch criteria.\n         *\n         * @type { dataSharePredicates.DataSharePredicates }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        /**\n         * Predicates that specify the fetch criteria.\n         *\n         * @type { dataSharePredicates.DataSharePredicates }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        predicates: dataSharePredicates.DataSharePredicates;\n    }\n    /**\n     * Config to create photo asset\n     *\n     * @interface PhotoCreationConfig\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @atomicservice\n     * @since 12\n     */\n    interface PhotoCreationConfig {\n        /**\n         * Title of the asset\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 12\n         */\n        title?: string;\n        /**\n         * Extension of the asset\n         *\n         * @type { string }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 12\n         */\n        fileNameExtension: string;\n        /**\n         * Specify photo type of the asset to create, include image or video\n         *\n         * @type { PhotoType }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 12\n         */\n        photoType: PhotoType;\n        /**\n         * Specify photo subtype of the asset to create, include default or moving_photo\n         *\n         * @type { ?PhotoSubtype }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 12\n         */\n        subtype?: PhotoSubtype;\n    }\n    /**\n     * Options for creating an image or video asset.\n     *\n     * @interface CreateOptions\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @since 10\n     */\n    /**\n     * Options for creating an image or video asset.\n     *\n     * @interface CreateOptions\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @atomicservice\n     * @since 11\n     */\n    interface CreateOptions {\n        /**\n         * Title of the asset\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Title of the asset\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 11\n         */\n        title?: string;\n        /**\n         * Specify subtype of the asset to create\n         *\n         * @type { ?PhotoSubtype }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 12\n         */\n        subtype?: PhotoSubtype;\n    }\n    /**\n     * Provides APIs to manage the file retrieval result.\n     *\n     * @interface FetchResult\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @since 10\n     */\n    /**\n     * Provides APIs to manage the file retrieval result.\n     *\n     * @interface FetchResult\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @crossplatform\n     * @since 12\n     */\n    /**\n     * Provides APIs to manage the file retrieval result.\n     *\n     * @interface FetchResult\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 20\n     */\n    interface FetchResult<T> {\n        /**\n         * Obtains the total number of files in the result set.\n         *\n         * @returns { number } Total number of objects.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Obtains the total number of files in the result set.\n         *\n         * @returns { number } Total number of objects.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        /**\n         * Obtains the total number of files in the result set.\n         *\n         * @returns { number } Total number of objects.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        getCount(): number;\n        /**\n         * Checks whether the cursor is in the last row of the result set.\n         * You need to check whether the object is the last one before calling getNextObject.\n         *\n         * @returns { boolean } Whether the object is the last one in the fetch result.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Checks whether the cursor is in the last row of the result set.\n         * You need to check whether the object is the last one before calling getNextObject.\n         *\n         * @returns { boolean } Whether the object is the last one in the fetch result.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        /**\n         * Checks whether the cursor is in the last row of the result set.\n         * You need to check whether the object is the last one before calling getNextObject.\n         *\n         * @returns { boolean } Whether the object is the last one in the fetch result.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        isAfterLast(): boolean;\n        /**\n         * Obtains the first file asset in the result set. This API uses an asynchronous callback to return the result.\n         *\n         * @param { AsyncCallback<T> } callback - Callback used to return the first file asset obtained.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Obtains the first file asset in the result set. This API uses an asynchronous callback to return the result.\n         *\n         * @param { AsyncCallback<T> } callback - Callback used to return the first file asset obtained.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        /**\n         * Obtains the first file asset in the result set. This API uses an asynchronous callback to return the result.\n         *\n         * @param { AsyncCallback<T> } callback - Callback used to return the first file asset obtained.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        getFirstObject(callback: AsyncCallback<T>): void;\n        /**\n         * Obtains the first file asset in the result set. This API uses a promise to return the result.\n         *\n         * @returns { Promise<T> } Returns the first object in the fetch result.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Obtains the first file asset in the result set. This API uses a promise to return the result.\n         *\n         * @returns { Promise<T> } Returns the first object in the fetch result.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        /**\n         * Obtains the first file asset in the result set. This API uses a promise to return the result.\n         *\n         * @returns { Promise<T> } Returns the first object in the fetch result.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        getFirstObject(): Promise<T>;\n        /**\n         * Obtains the next file asset in the result set. This API uses an asynchronous callback to return the result.\n         * Before using this API, you must use isAfterLast() to check whether the current position is the end of the result set.\n         *\n         * @param { AsyncCallback<T> } callback - Callback used to return the next file asset obtained.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Obtains the next file asset in the result set. This API uses an asynchronous callback to return the result.\n         * Before using this API, you must use isAfterLast() to check whether the current position is the end of the result set.\n         *\n         * @param { AsyncCallback<T> } callback - Callback used to return the next file asset obtained.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        /**\n         * Obtains the next file asset in the result set. This API uses an asynchronous callback to return the result.\n         * Before using this API, you must use isAfterLast() to check whether the current position is the end of the result set.\n         *\n         * @param { AsyncCallback<T> } callback - Callback used to return the next file asset obtained.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        getNextObject(callback: AsyncCallback<T>): void;\n        /**\n         * Obtains the next file asset in the result set. This API uses a promise to return the result.\n         * Before using this API, you must use isAfterLast() to check whether the current position is the end of the result set.\n         *\n         * @returns { Promise<T> } Returns the next object\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Obtains the next file asset in the result set. This API uses a promise to return the result.\n         * Before using this API, you must use isAfterLast() to check whether the current position is the end of the result set.\n         *\n         * @returns { Promise<T> } Returns the next object\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        /**\n         * Obtains the next file asset in the result set. This API uses a promise to return the result.\n         * Before using this API, you must use isAfterLast() to check whether the current position is the end of the result set.\n         *\n         * @returns { Promise<T> } Returns the next object\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        getNextObject(): Promise<T>;\n        /**\n         * Obtains the last file asset in the result set. This API uses an asynchronous callback to return the result.\n         *\n         * @param { AsyncCallback<T> } callback - Callback used to return the last file asset obtained.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Obtains the last file asset in the result set. This API uses an asynchronous callback to return the result.\n         *\n         * @param { AsyncCallback<T> } callback - Callback used to return the last file asset obtained.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        /**\n         * Obtains the last file asset in the result set. This API uses an asynchronous callback to return the result.\n         *\n         * @param { AsyncCallback<T> } callback - Callback used to return the last file asset obtained.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        getLastObject(callback: AsyncCallback<T>): void;\n        /**\n         * Obtains the last file asset in the result set. This API uses a promise to return the result.\n         *\n         * @returns { Promise<T> } Returns the last object\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Obtains the last file asset in the result set. This API uses a promise to return the result.\n         *\n         * @returns { Promise<T> } Returns the last object\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        /**\n         * Obtains the last file asset in the result set. This API uses a promise to return the result.\n         *\n         * @returns { Promise<T> } Returns the last object\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        getLastObject(): Promise<T>;\n        /**\n         * Obtains a file asset with the specified index in the result set. This API uses an asynchronous callback to return the result.\n         *\n         * @param { number } index - Index of the file asset to obtain. The value starts from 0.\n         * @param { AsyncCallback<T> } callback - Callback used to return the file asset obtained.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Obtains a file asset with the specified index in the result set. This API uses an asynchronous callback to return the result.\n         *\n         * @param { number } index - Index of the file asset to obtain. The value starts from 0.\n         * @param { AsyncCallback<T> } callback - Callback used to return the file asset obtained.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        /**\n         * Obtains a file asset with the specified index in the result set. This API uses an asynchronous callback to return the result.\n         *\n         * @param { number } index - Index of the file asset to obtain. The value starts from 0.\n         * @param { AsyncCallback<T> } callback - Callback used to return the file asset obtained.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        getObjectByPosition(index: number, callback: AsyncCallback<T>): void;\n        /**\n         * Obtains a file asset with the specified index in the result set. This API uses a promise to return the result.\n         *\n         * @param { number } index - Index of the file asset to obtain. The value starts from 0.\n         * @returns { Promise<T> } Returns the object\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Obtains a file asset with the specified index in the result set. This API uses a promise to return the result.\n         *\n         * @param { number } index - Index of the file asset to obtain. The value starts from 0.\n         * @returns { Promise<T> } Returns the object\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        /**\n         * Obtains a file asset with the specified index in the result set. This API uses a promise to return the result.\n         *\n         * @param { number } index - Index of the file asset to obtain. The value starts from 0.\n         * @returns { Promise<T> } Returns the object\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        getObjectByPosition(index: number): Promise<T>;\n        /**\n         * Obtains all the file assets in the result set. This API uses an asynchronous callback to return the result.\n         *\n         * @param { AsyncCallback<Array<T>> } callback - Callback used to return an array of all file assets in the result set.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Obtains all the file assets in the result set. This API uses an asynchronous callback to return the result.\n         *\n         * @param { AsyncCallback<Array<T>> } callback - Callback used to return an array of all file assets in the result set.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        /**\n         * Obtains all the file assets in the result set. This API uses an asynchronous callback to return the result.\n         *\n         * @param { AsyncCallback<Array<T>> } callback - Callback used to return an array of all file assets in the result set.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        getAllObjects(callback: AsyncCallback<Array<T>>): void;\n        /**\n         * Obtains all the file assets in the result set. This API uses a promise to return the result.\n         *\n         * @returns { Promise<Array<T>> } Returns all the objects\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Obtains all the file assets in the result set. This API uses a promise to return the result.\n         *\n         * @returns { Promise<Array<T>> } Returns all the objects\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        /**\n         * Obtains all the file assets in the result set. This API uses a promise to return the result.\n         *\n         * @returns { Promise<Array<T>> } Returns all the objects\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        getAllObjects(): Promise<Array<T>>;\n        /**\n         * Closes this FetchResult instance to invalidate it. After this instance is released, the APIs in this instance cannot be invoked.\n         *\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Closes this FetchResult instance to invalidate it. After this instance is released, the APIs in this instance cannot be invoked.\n         *\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        /**\n         * Closes this FetchResult instance to invalidate it. After this instance is released, the APIs in this instance cannot be invoked.\n         *\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        close(): void;\n    }\n    /**\n     * Enumerates the album types.\n     *\n     * @enum { number } AlbumType\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @since 10\n     */\n    /**\n     * Enumerates the album types.\n     *\n     * @enum { number } AlbumType\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @crossplatform\n     * @since 12\n     */\n    enum AlbumType {\n        /**\n         * User album.\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * User album.\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        USER = 0,\n        /**\n         * System album.\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * System album.\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        SYSTEM = 1024\n    }\n    /**\n     * Enumerate the album subtypes.\n     *\n     * @enum { number } AlbumSubtype\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @since 10\n     */\n    /**\n     * Enumerate the album subtypes.\n     *\n     * @enum { number } AlbumSubtype\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @crossplatform\n     * @since 12\n     */\n    enum AlbumSubtype {\n        /**\n         * Generic user-created albums.\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Generic user-created albums.\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        USER_GENERIC = 1,\n        /**\n         * Favorite album, which assets are marked as favorite.\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Favorite album, which assets are marked as favorite.\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        FAVORITE = 1025,\n        /**\n         * Video album, which contains all video assets.\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Video album, which contains all video assets.\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        VIDEO,\n        \n        /**\n         * Image album\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 12\n         */\n        IMAGE = 1031,\n        /**\n         * Any album\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Any album\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        ANY = 2147483647\n    }\n    /**\n     * Defines the abstract interface of albums.\n     *\n     * @interface AbsAlbum\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @since 10\n     */\n    /**\n     * Defines the abstract interface of albums.\n     *\n     * @interface AbsAlbum\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @crossplatform\n     * @since 12\n     */\n    interface AbsAlbum {\n        /**\n         * Album type\n         *\n         * @type { AlbumType }\n         * @readonly\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Album type\n         *\n         * @type { AlbumType }\n         * @readonly\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        readonly albumType: AlbumType;\n        /**\n         * Album subtype\n         *\n         * @type { AlbumSubtype }\n         * @readonly\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Album subtype\n         *\n         * @type { AlbumSubtype }\n         * @readonly\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        readonly albumSubtype: AlbumSubtype;\n        /**\n         * Album name.\n         *\n         * @type { string }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Album name.\n         *\n         * @type { string }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        albumName: string;\n        /**\n         * Album uri.\n         *\n         * @type { string }\n         * @readonly\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Album uri.\n         *\n         * @type { string }\n         * @readonly\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        readonly albumUri: string;\n        /**\n         * Number of assets in the album\n         *\n         * @type { number }\n         * @readonly\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Number of assets in the album\n         *\n         * @type { number }\n         * @readonly\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        readonly count: number;\n        /**\n         * Cover uri for the album\n         *\n         * @type { string }\n         * @readonly\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        readonly coverUri: string;\n        /**\n         * Obtains image and video assets. This API uses an asynchronous callback to return the result.\n         *\n         * @permission ohos.permission.READ_IMAGEVIDEO\n         * @param { FetchOptions } options - Options for fetching the image and video assets.\n         * @param { AsyncCallback<FetchResult<PhotoAsset>> } callback - Callback used to return the image and video assets obtained.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Obtains image and video assets. This API uses an asynchronous callback to return the result.\n         *\n         * @permission ohos.permission.READ_IMAGEVIDEO\n         * @param { FetchOptions } options - Options for fetching the image and video assets.\n         * @param { AsyncCallback<FetchResult<PhotoAsset>> } callback - Callback used to return the image and video assets obtained.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        getAssets(options: FetchOptions, callback: AsyncCallback<FetchResult<PhotoAsset>>): void;\n        /**\n         * Fetch assets in an album.\n         *\n         * @permission ohos.permission.READ_IMAGEVIDEO\n         * @param { FetchOptions } options - Fetch options.\n         * @returns { Promise<FetchResult<PhotoAsset>> } Returns the fetch result\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Fetch assets in an album.\n         *\n         * @permission ohos.permission.READ_IMAGEVIDEO\n         * @param { FetchOptions } options - Fetch options.\n         * @returns { Promise<FetchResult<PhotoAsset>> } Returns the fetch result\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        /**\n         * Fetch assets in an album.\n         *\n         * @permission ohos.permission.READ_IMAGEVIDEO\n         * @param { FetchOptions } options - Fetch options.\n         * @returns { Promise<FetchResult<PhotoAsset>> } Returns the fetch result\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        getAssets(options: FetchOptions): Promise<FetchResult<PhotoAsset>>;\n    }\n    /**\n     * Defines the album.\n     *\n     * @extends AbsAlbum\n     * @interface Album\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @since 10\n     */\n    /**\n     * Defines the album.\n     *\n     * @extends AbsAlbum\n     * @interface Album\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @crossplatform\n     * @since 12\n     */\n    interface Album extends AbsAlbum {\n        /**\n         * Number of image assets in the album\n         *\n         * @type { ?number }\n         * @readonly\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 11\n         */\n        /**\n         * Number of image assets in the album\n         *\n         * @type { ?number }\n         * @readonly\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        readonly imageCount?: number;\n        /**\n         * Number of video assets in the album\n         *\n         * @type { ?number }\n         * @readonly\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 11\n         */\n        /**\n         * Number of video assets in the album\n         *\n         * @type { ?number }\n         * @readonly\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        readonly videoCount?: number;\n        /**\n         * Modify metadata for the album\n         *\n         * @permission ohos.permission.WRITE_IMAGEVIDEO\n         * @param { AsyncCallback<void> } callback - Returns void\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        commitModify(callback: AsyncCallback<void>): void;\n        /**\n         * Modify metadata for the album\n         *\n         * @permission ohos.permission.WRITE_IMAGEVIDEO\n         * @returns { Promise<void> } Returns void\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        commitModify(): Promise<void>;\n        /**\n         * Adds image and video assets to an album. Before the operation, ensure that the image and video assets to add and the album exist.\n         * This API uses an asynchronous callback to return the result.\n         *\n         * @permission ohos.permission.WRITE_IMAGEVIDEO\n         * @param { Array<PhotoAsset> } assets - Array of the image and video assets to add.\n         * @param { AsyncCallback<void> } callback - Callback that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         * @deprecated since 11\n         * @useinstead photoAccessHelper.MediaAlbumChangeRequest#addAssets\n         */\n        addAssets(assets: Array<PhotoAsset>, callback: AsyncCallback<void>): void;\n        /**\n         * Adds image and video assets to an album. Before the operation, ensure that the image and video assets to add and the album exist.\n         * This API uses a promise to return the result.\n         *\n         * @permission ohos.permission.WRITE_IMAGEVIDEO\n         * @param { Array<PhotoAsset> } assets - Array of the image and video assets to add.\n         * @returns { Promise<void> } Returns void\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         * @deprecated since 11\n         * @useinstead photoAccessHelper.MediaAlbumChangeRequest#addAssets\n         */\n        addAssets(assets: Array<PhotoAsset>): Promise<void>;\n        /**\n         * Removes image and video assets from an album. The album and file resources must exist.\n         * This API uses an asynchronous callback to return the result.\n         *\n         * @permission ohos.permission.WRITE_IMAGEVIDEO\n         * @param { Array<PhotoAsset> } assets - Array of the image and video assets to remove.\n         * @param { AsyncCallback<void> } callback - Callback that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         * @deprecated since 11\n         * @useinstead photoAccessHelper.MediaAlbumChangeRequest#removeAssets\n         */\n        removeAssets(assets: Array<PhotoAsset>, callback: AsyncCallback<void>): void;\n        /**\n         * Removes image and video assets from an album. The album and file resources must exist.\n         * This API uses a promise to return the result.\n         *\n         * @permission ohos.permission.WRITE_IMAGEVIDEO\n         * @param { Array<PhotoAsset> } assets - Array of the image and video assets to remove.\n         * @returns { Promise<void> } Returns void\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         * @deprecated since 11\n         * @useinstead photoAccessHelper.MediaAlbumChangeRequest#removeAssets\n         */\n        removeAssets(assets: Array<PhotoAsset>): Promise<void>;\n    }\n    /**\n     * Helper functions to access photos and albums.\n     *\n     * @interface PhotoAccessHelper\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @since 10\n     */\n    /**\n     * Helper functions to access photos and albums.\n     *\n     * @interface PhotoAccessHelper\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Helper functions to access photos and albums.\n     *\n     * @interface PhotoAccessHelper\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    interface PhotoAccessHelper {\n        /**\n         * Obtains image and video assets. This API uses an asynchronous callback to return the result.\n         *\n         * @permission ohos.permission.READ_IMAGEVIDEO\n         * @param { FetchOptions } options - Options for fetching the image and video assets.\n         * @param { AsyncCallback<FetchResult<PhotoAsset>> } callback - Callback used to return the image and video assets obtained.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Obtains image and video assets. This API uses an asynchronous callback to return the result.\n         *\n         * @permission ohos.permission.READ_IMAGEVIDEO\n         * @param { FetchOptions } options - Options for fetching the image and video assets.\n         * @param { AsyncCallback<FetchResult<PhotoAsset>> } callback - Callback used to return the image and video assets obtained.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        getAssets(options: FetchOptions, callback: AsyncCallback<FetchResult<PhotoAsset>>): void;\n        /**\n         * Obtains image and video assets. This API uses a promise to return the result.\n         *\n         * @permission ohos.permission.READ_IMAGEVIDEO\n         * @param { FetchOptions } options - Options for fetching the image and video assets.\n         * @returns { Promise<FetchResult<PhotoAsset>> } Returns the fetch result.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Obtains image and video assets. This API uses a promise to return the result.\n         *\n         * @permission ohos.permission.READ_IMAGEVIDEO\n         * @param { FetchOptions } options - Options for fetching the image and video assets.\n         * @returns { Promise<FetchResult<PhotoAsset>> } Returns the fetch result.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        getAssets(options: FetchOptions): Promise<FetchResult<PhotoAsset>>;\n        /**\n         * Obtains burst assets. This API uses a promise to return the result.\n         *\n         * @permission ohos.permission.READ_IMAGEVIDEO\n         * @param { string } burstKey - UUID of a set of burst photos (BURST_KEY of PhotoKeys). The value is a string of 36 characters.\n         * @param { FetchOptions } options - Options for fetching the burst photos.\n         * @returns { Promise<FetchResult<PhotoAsset>> } Returns the fetch result.\n         * @throws { BusinessError } 201 - Permission denied\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 14000011 - Internal system error\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 12\n         */\n        /**\n         * Obtains burst assets. This API uses a promise to return the result.\n         *\n         * @permission ohos.permission.READ_IMAGEVIDEO\n         * @param { string } burstKey - UUID of a set of burst photos (BURST_KEY of PhotoKeys). The value is a string of 36 characters.\n         * @param { FetchOptions } options - Options for fetching the burst photos.\n         * @returns { Promise<FetchResult<PhotoAsset>> } Returns the fetch result.\n         * @throws { BusinessError } 201 - Permission denied\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 14000011 - Internal system error\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 20\n         */\n        getBurstAssets(burstKey: string, options: FetchOptions): Promise<FetchResult<PhotoAsset>>;\n        /**\n         * Creates an image or video asset with the specified file type, file name extension, and options.\n         * This API uses an asynchronous callback to return the result.\n         *\n         * @permission ohos.permission.WRITE_IMAGEVIDEO\n         * @param { PhotoType } photoType - Type of the file to create, which can be IMAGE or VIDEO.\n         * @param { string } extension - File name extension, for example, 'jpg'.\n         * @param { CreateOptions } options - Options for creating the image or video asset, for example, {title: 'testPhoto'}.\n         * @param { AsyncCallback<string> } callback - Callback used to return the URI of the created image or video asset.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Creates an image or video asset with the specified file type, file name extension, and options.\n         * This API uses an asynchronous callback to return the result.\n         *\n         * @permission ohos.permission.WRITE_IMAGEVIDEO\n         * @param { PhotoType } photoType - Type of the file to create, which can be IMAGE or VIDEO.\n         * @param { string } extension - File name extension, for example, 'jpg'.\n         * @param { CreateOptions } options - Options for creating the image or video asset, for example, {title: 'testPhoto'}.\n         * @param { AsyncCallback<string> } callback - Callback used to return the URI of the created image or video asset.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 11\n         */\n        createAsset(photoType: PhotoType, extension: string, options: CreateOptions, callback: AsyncCallback<string>): void;\n        /**\n         * Creates an image or video asset with the specified file type and file name extension.\n         * This API uses an asynchronous callback to return the result.\n         *\n         * @permission ohos.permission.WRITE_IMAGEVIDEO\n         * @param { PhotoType } photoType - Type of the file to create, which can be IMAGE or VIDEO.\n         * @param { string } extension - File name extension, for example, 'jpg'.\n         * @param { AsyncCallback<string> } callback - Callback used to return the URI of the created image or video asset.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Creates an image or video asset with the specified file type and file name extension.\n         * This API uses an asynchronous callback to return the result.\n         *\n         * @permission ohos.permission.WRITE_IMAGEVIDEO\n         * @param { PhotoType } photoType - Type of the file to create, which can be IMAGE or VIDEO.\n         * @param { string } extension - File name extension, for example, 'jpg'.\n         * @param { AsyncCallback<string> } callback - Callback used to return the URI of the created image or video asset.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 11\n         */\n        createAsset(photoType: PhotoType, extension: string, callback: AsyncCallback<string>): void;\n        /**\n         * Creates an image or video asset with the specified file type, file name extension, and options.\n         * This API uses a promise to return the result.\n         *\n         * @permission ohos.permission.WRITE_IMAGEVIDEO\n         * @param { PhotoType } photoType - Type of the file to create, which can be IMAGE or VIDEO.\n         * @param { string } extension - File name extension, for example, 'jpg'.\n         * @param { CreateOptions } [options] - Options for creating the image or video asset, for example, {title: 'testPhoto'}.\n         * @returns { Promise<string> } Returns the uri of the newly created asset\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Creates an image or video asset with the specified file type, file name extension, and options.\n         * This API uses a promise to return the result.\n         *\n         * @permission ohos.permission.WRITE_IMAGEVIDEO\n         * @param { PhotoType } photoType - Type of the file to create, which can be IMAGE or VIDEO.\n         * @param { string } extension - File name extension, for example, 'jpg'.\n         * @param { CreateOptions } [options] - Options for creating the image or video asset, for example, {title: 'testPhoto'}.\n         * @returns { Promise<string> } Returns the uri of the newly created asset\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 11\n         */\n        createAsset(photoType: PhotoType, extension: string, options?: CreateOptions): Promise<string>;\n        /**\n         * Obtains albums based on the specified options and album type. This API uses an asynchronous callback to return the result.\n         * Before the operation, ensure that the albums to obtain exist.\n         *\n         * @permission ohos.permission.READ_IMAGEVIDEO\n         * @param { AlbumType } type - Type of the album.\n         * @param { AlbumSubtype } subtype - Subtype of the album.\n         * @param { FetchOptions } options - Options for fetching the albums.\n         * @param { AsyncCallback<FetchResult<Album>> } callback - Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Obtains albums based on the specified options and album type. This API uses an asynchronous callback to return the result.\n         * Before the operation, ensure that the albums to obtain exist.\n         *\n         * @permission ohos.permission.READ_IMAGEVIDEO\n         * @param { AlbumType } type - Type of the album.\n         * @param { AlbumSubtype } subtype - Subtype of the album.\n         * @param { FetchOptions } options - Options for fetching the albums.\n         * @param { AsyncCallback<FetchResult<Album>> } callback - Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        getAlbums(type: AlbumType, subtype: AlbumSubtype, options: FetchOptions, callback: AsyncCallback<FetchResult<Album>>): void;\n        /**\n         * Obtains albums by type. This API uses an asynchronous callback to return the result.\n         * Before the operation, ensure that the albums to obtain exist.\n         *\n         * @permission ohos.permission.READ_IMAGEVIDEO\n         * @param { AlbumType } type - Type of the album.\n         * @param { AlbumSubtype } subtype - Subtype of the album.\n         * @param { AsyncCallback<FetchResult<Album>> } callback - Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Obtains albums by type. This API uses an asynchronous callback to return the result.\n         * Before the operation, ensure that the albums to obtain exist.\n         *\n         * @permission ohos.permission.READ_IMAGEVIDEO\n         * @param { AlbumType } type - Type of the album.\n         * @param { AlbumSubtype } subtype - Subtype of the album.\n         * @param { AsyncCallback<FetchResult<Album>> } callback - Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        getAlbums(type: AlbumType, subtype: AlbumSubtype, callback: AsyncCallback<FetchResult<Album>>): void;\n        /**\n         * Obtains albums based on the specified options and album type. This API uses a promise to return the result.\n         * Before the operation, ensure that the albums to obtain exist.\n         *\n         * @permission ohos.permission.READ_IMAGEVIDEO\n         * @param { AlbumType } type - Type of the album.\n         * @param { AlbumSubtype } subtype - Subtype of the album.\n         * @param { FetchOptions } [options] - Options for fetching the albums.\n         * @returns { Promise<FetchResult<Album>> } - Returns the fetch result\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Obtains albums based on the specified options and album type. This API uses a promise to return the result.\n         * Before the operation, ensure that the albums to obtain exist.\n         *\n         * @permission ohos.permission.READ_IMAGEVIDEO\n         * @param { AlbumType } type - Type of the album.\n         * @param { AlbumSubtype } subtype - Album subtype.\n         * @param { FetchOptions } [options] - Options for fetching the albums.\n         * @returns { Promise<FetchResult<Album>> } - Returns the fetch result\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @since 12\n         */\n        getAlbums(type: AlbumType, subtype: AlbumSubtype, options?: FetchOptions): Promise<FetchResult<Album>>;\n        /**\n         * Registers listening for the specified URI. This API uses a callback to return the result.\n         *\n         * @param { string } uri - URI of the photo asset, URI of the album, or DefaultChangeUri.\n         * @param { boolean } forChildUris - Whether to perform fuzzy listening.\n         * If uri is the URI of an album, the value true means to listen for the changes of the files in the album;\n         * the value false means to listen for the changes of the album only.\n         * If uri is the URI of a photoAsset, there is no difference between true and false for forChildUris.\n         * If uri is DefaultChangeUri, forChildUris must be set to true. If forChildUris is false,\n         * the URI cannot be found and no message can be received.\n         * @param { Callback<ChangeData> } callback - Callback used to return the ChangeData.\n         * Multiple callback listeners can be registered for a URI.\n         * You can use unRegisterChange to unregister all listeners for the URI or a specified callback listener.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        registerChange(uri: string, forChildUris: boolean, callback: Callback<ChangeData>): void;\n        /**\n         * Unregisters listening for the specified URI. Multiple callbacks can be registered for a URI for listening.\n         * You can use this API to unregister the listening of the specified callbacks or all callbacks.\n         *\n         * @param { string } uri - URI of the photo asset, URI of the album, or DefaultChangeUri.\n         * @param { Callback<ChangeData> } [callback] - The callback function to unregister.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        unRegisterChange(uri: string, callback?: Callback<ChangeData>): void;\n        /**\n         * Creates a dialog box for deleting media files. This API uses an asynchronous callback to return the result.\n         * The deleted media files are moved to the trash.\n         *\n         * @permission ohos.permission.WRITE_IMAGEVIDEO\n         * @param { Array<string> } uriList - URIs of the media files to delete. A maximum of 300 media files can be deleted.\n         * @param { AsyncCallback<void> } callback - Callback that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         * @deprecated since 11\n         * @useinstead photoAccessHelper.MediaAssetChangeRequest#deleteAssets\n         */\n        createDeleteRequest(uriList: Array<string>, callback: AsyncCallback<void>): void;\n        /**\n         * Creates a dialog box for deleting media files. This API uses a promise to return the result.\n         * The deleted media files are moved to the trash.\n         *\n         * @permission ohos.permission.WRITE_IMAGEVIDEO\n         * @param { Array<string> } uriList - URIs of the media files to delete. A maximum of 300 media files can be deleted.\n         * @returns { Promise<void> } - Returns void\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900012 - Permission denied\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         * @deprecated since 11\n         * @useinstead photoAccessHelper.MediaAssetChangeRequest#deleteAssets\n         */\n        createDeleteRequest(uriList: Array<string>): Promise<void>;\n        /**\n         * Create a save dialog to save photos\n         *\n         * @param { Array<string> } srcFileUris - List of the file uris to be saved\n         * @param { Array<PhotoCreationConfig> } photoCreationConfigs - List of the photo asset creation configs\n         * @returns { Promise<Array<string>> } - Returns the media library file uri list to application which has been authorized\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 14000011 - Internal system error\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 12\n         */\n        showAssetsCreationDialog(srcFileUris: Array<string>, photoCreationConfigs: Array<PhotoCreationConfig>): Promise<Array<string>>;\n        /**\n         * Create asset and grant short term permission to the application.\n         *\n         * @permission ohos.permission.SHORT_TERM_WRITE_IMAGEVIDEO\n         * @param { PhotoCreationConfig } photoCreationConfig - photo asset creation configs\n         * @returns { Promise<string> } - Returns the media library file uri to application which has been authorized\n         * @throws { BusinessError } 201 - Permission denied\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 14000011 - Internal system error\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 12\n         */\n        createAssetWithShortTermPermission(photoCreationConfig: PhotoCreationConfig): Promise<string>;\n        /**\n         * Grants the save permission for URIs. This API uses a promise to return the result.\n         *\n         * @param { Array<string> } srcFileUris - URIs of the images or videos to be granted with the permission.\n         * @returns { Promise<Array<string>> } - Returns the authorized uri list\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 14000011 - Internal system error\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 14\n         */\n        requestPhotoUrisReadPermission(srcFileUris: Array<string>): Promise<Array<string>>;\n        /**\n         * Releases this PhotoAccessHelper instance. This API uses an asynchronous callback to return the result.\n         * Call this API when the APIs of the PhotoAccessHelper instance are no longer used.\n         *\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        release(callback: AsyncCallback<void>): void;\n        /**\n         * Releases this PhotoAccessHelper instance. This API uses a promise to return the result.\n         * Call this API when the APIs of the PhotoAccessHelper instance are no longer used.\n         *\n         * @returns { Promise<void> } Returns void\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900020 - Invalid argument\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        release(): Promise<void>;\n        /**\n         * Applies media changes. This API uses a promise to return the result.\n         *\n         * @permission ohos.permission.WRITE_IMAGEVIDEO\n         * @param { MediaChangeRequest } mediaChangeRequest - Request for asset changes or album changes.\n         * @returns { Promise<void> } Returns void\n         * @throws { BusinessError } 201 - Permission denied\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 11\n         */\n        applyChanges(mediaChangeRequest: MediaChangeRequest): Promise<void>;\n        /**\n         * Obtains the list of image or video file name extensions supported by the media library.\n         *\n         * @param { PhotoType } photoType - Type of the file.\n         * @returns { Promise<Array<string>> } - Return the list of image or video suffixes supported by the media library\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 14000011 - Internal system error. It is recommended to retry and check the logs.\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 18\n         */\n        getSupportedPhotoFormats(photoType: PhotoType): Promise<Array<string>>;\n    }\n    /**\n     * Enumeration types of data change.\n     *\n     * @enum { number } NotifyType\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @since 10\n     */\n    enum NotifyType {\n        /**\n         * Data(assets or albums) have been newly created\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        NOTIFY_ADD,\n        /**\n         * Data(assets or albums) have been modified\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        NOTIFY_UPDATE,\n        /**\n         * Data(assets or albums) have been removed\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        NOTIFY_REMOVE,\n        /**\n         * Assets have been added to an album.\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        NOTIFY_ALBUM_ADD_ASSET,\n        /**\n         * Assets have been removed from an album.\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        NOTIFY_ALBUM_REMOVE_ASSET\n    }\n    /**\n     * Enumeration uris for registerChange.\n     *\n     * @enum { string } DefaultChangeUri\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @since 10\n     */\n    enum DefaultChangeUri {\n        /**\n         * Uri for default PhotoAsset, use with forDescendant{true}, will receive all PhotoAsset's change notifications\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        DEFAULT_PHOTO_URI = 'file://media/Photo',\n        /**\n         * Uri for default Album, use with forDescendant{true}, will receive all Album's change notifications\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        DEFAULT_ALBUM_URI = 'file://media/PhotoAlbum'\n    }\n    /**\n     * Defines the change data\n     *\n     * @interface ChangeData\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @since 10\n     */\n    interface ChangeData {\n        /**\n         * The NotifyType of ChangeData\n         *\n         * @type { NotifyType }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        type: NotifyType;\n        /**\n         * The changed uris\n         *\n         * @type { Array<string> }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        uris: Array<string>;\n        /**\n         * Change details of the asset uris to an album.\n         *\n         * @type { Array<string> }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        extraUris: Array<string>;\n    }\n    /**\n     * PhotoViewMIMETypes represents the type of media resource that photo picker selects.\n     *\n     * @enum { string } PhotoViewMIMETypes\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @since 10\n     */\n    /**\n     * PhotoViewMIMETypes represents the type of media resource that photo picker selects.\n     *\n     * @enum { string } PhotoViewMIMETypes\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * PhotoViewMIMETypes represents the type of media resource that photo picker selects.\n     *\n     * @enum { string } PhotoViewMIMETypes\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    export enum PhotoViewMIMETypes {\n        /**\n         * IMAGE_TYPE indicates that the selected media resources are images.\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * IMAGE_TYPE indicates that the selected media resources are images.\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * IMAGE_TYPE indicates that the selected media resources are images.\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        IMAGE_TYPE = 'image/*',\n        /**\n         * VIDEO_TYPE indicates that the selected media resources are videos.\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * VIDEO_TYPE indicates that the selected media resources are videos.\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * VIDEO_TYPE indicates that the selected media resources are videos.\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        VIDEO_TYPE = 'video/*',\n        /**\n         * IMAGE_VIDEO_TYPE indicates that the selected media resources are images and videos.\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * IMAGE_VIDEO_TYPE indicates that the selected media resources are images and videos.\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * IMAGE_VIDEO_TYPE indicates that the selected media resources are images and videos.\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        IMAGE_VIDEO_TYPE = '*/*',\n        /**\n         * MOVING_PHOTO_IMAGE_TYPE indicates that the selected media resources are moving photos.\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 12\n         */\n        MOVING_PHOTO_IMAGE_TYPE = 'image/movingPhoto'\n    }\n    /**\n     * Enumeration type of filter operator.\n     *\n     * @enum { number } FilterOperator\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @atomicservice\n     * @since 19\n     */\n    export enum FilterOperator {\n        /**\n         * Filter operator: equal to\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 19\n         */\n        EQUAL_TO = 0,\n        /**\n         * Filter operator: not equal to\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 19\n         */\n        NOT_EQUAL_TO = 1,\n        /**\n         * Filter operator: more than\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 19\n         */\n        MORE_THAN = 2,\n        /**\n         * Filter operator: less than\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 19\n         */\n        LESS_THAN = 3,\n        /**\n         * Filter operator: more than or equal to\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 19\n         */\n        MORE_THAN_OR_EQUAL_TO = 4,\n        /**\n         * Filter operator: less than or equal to\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 19\n         */\n        LESS_THAN_OR_EQUAL_TO = 5,\n        /**\n         * Filter operator: between\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 19\n         */\n        BETWEEN = 6\n    }\n    /**\n     * Enumeration type of single selection mode\n     *\n     * @enum { number } SingleSelectionMode\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @atomicservice\n     * @since 18\n     */\n    export enum SingleSelectionMode {\n        /**\n         * browser mode\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 18\n         */\n        BROWSER_MODE = 0,\n        /**\n         * select directly mode\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 18\n         */\n        SELECT_MODE = 1,\n        /**\n         * browser and select mode\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 18\n         */\n        BROWSER_AND_SELECT_MODE = 2\n    }\n    /**\n     * Class BaseSelectOptions, which is extracted from class PhotoSelectOptions\n     *\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    class BaseSelectOptions {\n        /**\n         * The Type of the file in the picker window.\n         *\n         * @type { ?PhotoViewMIMETypes }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * The Type of the file in the picker window.\n         *\n         * @type { ?PhotoViewMIMETypes }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * The Type of the file in the picker window.\n         * Move from class PhotoSelectOptions to it's base class BaseSelectOptions\n         *\n         * @type { ?PhotoViewMIMETypes }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        MIMEType?: PhotoViewMIMETypes;\n        /**\n         * Maximum number of images for a single selection.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Maximum number of images for a single selection.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Maximum number of images for a single selection.\n         * Move from class PhotoSelectOptions to it's base class BaseSelectOptions\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 12\n         */\n        maxSelectNumber?: number;\n        /**\n         * Support search.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Support search.\n         * Move from class PhotoSelectOptions to it's base class BaseSelectOptions\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 12\n         */\n        isSearchSupported?: boolean;\n        /**\n         * Support taking photos.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Support taking photos.\n         * Move from class PhotoSelectOptions to it's base class BaseSelectOptions\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 12\n         */\n        isPhotoTakingSupported?: boolean;\n        /**\n        * The recommendation options when use recommendation photo function.\n        *\n        * @type { ?RecommendationOptions }\n        * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n        * @atomicservice\n        * @since 11\n        */\n        /**\n         * The recommendation options when use recommendation photo function.\n         * Move from class PhotoSelectOptions to it's base class BaseSelectOptions\n         *\n         * @type { ?RecommendationOptions }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 12\n         */\n        recommendationOptions?: RecommendationOptions;\n        /**\n         * The uri for the preselected files.\n         *\n         * @type { ?Array<string> }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * The uri for the preselected files.\n         * Move from class PhotoSelectOptions to it's base class BaseSelectOptions\n         *\n         * @type { ?Array<string> }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 12\n         */\n        preselectedUris?: Array<string>;\n        /**\n         * Support preview in single selection mode or not\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 12\n         */\n        isPreviewForSingleSelectionSupported?: boolean;\n        /**\n         * The mode of single selection\n         *\n         * @type { ?SingleSelectionMode }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 18\n         */\n        singleSelectionMode?: SingleSelectionMode;\n        /**\n         * Media file filtering configuration.\n         *\n         * @type { ?MimeTypeFilter }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 19\n         */\n        mimeTypeFilter?: MimeTypeFilter;\n        /**\n         * Media file size filtering configuration.\n         *\n         * @type { ?FileSizeFilter }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 19\n         */\n        fileSizeFilter?: FileSizeFilter;\n        /**\n         * Media file video duration filtering configuration.\n         *\n         * @type { ?VideoDurationFilter }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 19\n         */\n        videoDurationFilter?: VideoDurationFilter;\n    }\n    /**\n     * Media file filtering configuration.\n     *\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @atomicservice\n     * @since 19\n     */\n    class MimeTypeFilter {\n        /**\n         * Indicates the media file type to be filtered.\n         *\n         * @type { Array<string> }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 19\n         */\n        mimeTypeArray: Array<string>;\n    }\n    /**\n     * Media file size filtering configuration.\n     *\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @atomicservice\n     * @since 19\n     */\n    class FileSizeFilter {\n        /**\n         * Specifing filter operator.\n         *\n         * @type { FilterOperator }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 19\n         */\n        filterOperator: FilterOperator;\n        /**\n         * Specifing the size of files to be filtered.\n         *\n         * @type { number }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 19\n         */\n        fileSize: number;\n        /**\n         * Specifing the upper limit of file size to be filtered.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 19\n         */\n        extraFileSize?: number;\n    }\n    /**\n     * Media file video duration filtering configuration.\n     *\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @atomicservice\n     * @since 19\n     */\n    class VideoDurationFilter {\n        /**\n         * Specifing filter operator.\n         *\n         * @type { FilterOperator }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 19\n         */\n        filterOperator: FilterOperator;\n        /**\n         * Specifing the video duration of files to be filtered.\n         *\n         * @type { number }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 19\n         */\n        videoDuration: number;\n        /**\n         * Specifing the upper limit of video duration to be filtered.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 19\n         */\n        extraVideoDuration?: number;\n    }\n    /**\n     * PhotoSelectOptions Object\n     *\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @since 10\n     */\n    /**\n     * PhotoSelectOptions Object\n     *\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * PhotoSelectOptions extends base class BaseSelectOptions\n     *\n     * @extends BaseSelectOptions\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    class PhotoSelectOptions extends BaseSelectOptions {\n        /**\n         * Support editing photos.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 11\n         */\n        isEditSupported?: boolean;\n        /**\n         * Support select original photo or not\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 12\n         */\n        isOriginalSupported?: boolean;\n        /**\n         * SubWindow name\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 12\n         */\n        subWindowName?: string;\n        /**\n         * Complete button text\n         *\n         * @type { ?CompleteButtonText }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 14\n         */\n        completeButtonText?: CompleteButtonText;\n    }\n    /**\n     * Defines the image recommendation options.\n     * The image recommendation feature depends on the image data analysis capability, which varies with devices.\n     *\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @atomicservice\n     * @since 11\n     */\n    class RecommendationOptions {\n        /**\n         * Type of the recommended image.\n         *\n         * @type { ?RecommendationType }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 11\n         */\n        recommendationType?: RecommendationType;\n        /**\n         * Text based on which images are recommended.\n         * If both recommendationType and textContextInfo are set, textContextInfo takes precedence over recommendationType.\n         *\n         * @type { ?TextContextInfo }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 12\n         */\n        textContextInfo?: TextContextInfo;\n    }\n    /**\n     * Represents the text information about the recommended images.\n     *\n     * @interface TextContextInfo\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @atomicservice\n     * @since 12\n     */\n    interface TextContextInfo {\n        /**\n         * Text based on which images are recommended.\n         * The text cannot exceed 250 characters. The default value is an empty string.\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 12\n         */\n        text?: string;\n    }\n    /**\n     * Defines information about the images or videos selected.\n     *\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @since 10\n     */\n    /**\n     * Defines information about the images or videos selected.\n     *\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Defines information about the images or videos selected.\n     *\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    class PhotoSelectResult {\n        /**\n         * URIs of the images or videos selected. The URI array can be used only by calling photoAccessHelper.getAssets with temporary authorization.\n         * For details about how to use the media file URI, see Using a Media File URI.\n         *\n         * @type { Array<string> }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * URIs of the images or videos selected. The URI array can be used only by calling photoAccessHelper.getAssets with temporary authorization.\n         * For details about how to use the media file URI, see Using a Media File URI.\n         *\n         * @type { Array<string> }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * URIs of the images or videos selected. The URI array can be used only by calling photoAccessHelper.getAssets with temporary authorization.\n         * For details about how to use the media file URI, see Using a Media File URI.\n         *\n         * @type { Array<string> }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        photoUris: Array<string>;\n        /**\n         * Whether the selected media asset is the original image.\n         * The value true means that the selected media asset is the original image, and false means the opposite.\n         * The default value is false.\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Whether the selected media asset is the original image.\n         * The value true means that the selected media asset is the original image, and false means the opposite.\n         * The default value is false.\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Whether the selected media asset is the original image.\n         * The value true means that the selected media asset is the original image, and false means the opposite.\n         * The default value is false.\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isOriginalPhoto: boolean;\n    }\n    /**\n     * Provides APIs for the user to select images and videos.\n     * Before using the APIs of PhotoViewPicker, you need to create a PhotoViewPicker instance.\n     *\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @since 10\n     */\n    /**\n     * Provides APIs for the user to select images and videos.\n     * Before using the APIs of PhotoViewPicker, you need to create a PhotoViewPicker instance.\n     *\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Provides APIs for the user to select images and videos.\n     * Before using the APIs of PhotoViewPicker, you need to create a PhotoViewPicker instance.\n     *\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    class PhotoViewPicker {\n        /**\n         * Pull up the photo picker based on the selection mode.\n         *\n         * @param { PhotoSelectOptions } [option] - represents the options provided in select mode.\n         * @returns { Promise<PhotoSelectResult> } Returns the uris for the selected files.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900042 - Unknown error\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Pull up the photo picker based on the selection mode.\n         *\n         * @param { PhotoSelectOptions } [option] - represents the options provided in select mode.\n         * @returns { Promise<PhotoSelectResult> } Returns the uris for the selected files.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900042 - Unknown error\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Pull up the photo picker based on the selection mode.\n         *\n         * @param { PhotoSelectOptions } [option] - represents the options provided in select mode.\n         * @returns { Promise<PhotoSelectResult> } Returns the uris for the selected files.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900042 - Unknown error\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        select(option?: PhotoSelectOptions): Promise<PhotoSelectResult>;\n        /**\n         * Pull up the photo picker based on the selection mode.\n         *\n         * @param { PhotoSelectOptions } option - represents the options provided in select mode.\n         * @param { AsyncCallback<PhotoSelectResult> } callback - Returns the PhotoSelectResult by photo picker\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900042 - Unknown error\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Pull up the photo picker based on the selection mode.\n         *\n         * @param { PhotoSelectOptions } option - represents the options provided in select mode.\n         * @param { AsyncCallback<PhotoSelectResult> } callback - Returns the PhotoSelectResult by photo picker\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900042 - Unknown error\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Pull up the photo picker based on the selection mode.\n         *\n         * @param { PhotoSelectOptions } option - represents the options provided in select mode.\n         * @param { AsyncCallback<PhotoSelectResult> } callback - Returns the PhotoSelectResult by photo picker\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900042 - Unknown error\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        select(option: PhotoSelectOptions, callback: AsyncCallback<PhotoSelectResult>): void;\n        /**\n         * Pull up the photo picker based on the selection mode.\n         *\n         * @param { AsyncCallback<PhotoSelectResult> } callback - Returns the PhotoSelectResult by photo picker\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900042 - Unknown error\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 10\n         */\n        /**\n         * Pull up the photo picker based on the selection mode.\n         *\n         * @param { AsyncCallback<PhotoSelectResult> } callback - Returns the PhotoSelectResult by photo picker\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900042 - Unknown error\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Pull up the photo picker based on the selection mode.\n         *\n         * @param { AsyncCallback<PhotoSelectResult> } callback - Returns the PhotoSelectResult by photo picker\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 13900042 - Unknown error\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        select(callback: AsyncCallback<PhotoSelectResult>): void;\n    }\n    /**\n     * Enumerates the types of the resources to write.\n     *\n     * @enum { number } ResourceType\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @atomicservice\n     * @since 11\n     */\n    enum ResourceType {\n        /**\n         * Image resource\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 11\n         */\n        IMAGE_RESOURCE = 1,\n        /**\n         * Video resource\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 11\n         */\n        VIDEO_RESOURCE = 2\n    }\n    /**\n     * Enumerates the types of image files to save.\n     *\n     * @enum { number } ImageFileType\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @since 13\n     */\n    enum ImageFileType {\n        /**\n         * JPEG\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 13\n         */\n        JPEG = 1,\n        /**\n         * HEIF\n         *\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 13\n         */\n        HEIF = 2\n    }\n    /**\n     * Defines the interface of media change request.\n     *\n     * @interface MediaChangeRequest\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @atomicservice\n     * @since 11\n     */\n    interface MediaChangeRequest {\n    }\n    /**\n     * Defines the class of media asset change request.\n     *\n     * @implements MediaChangeRequest\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @atomicservice\n     * @since 11\n     */\n    class MediaAssetChangeRequest implements MediaChangeRequest {\n        /**\n         * Constructor used to initialize an asset change request.\n         *\n         * @param { PhotoAsset } asset - Assets to change.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 11\n         */\n        /**\n         * Constructor used to initialize an asset change request.\n         *\n         * @param { PhotoAsset } asset - Assets to change.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 12\n         */\n        constructor(asset: PhotoAsset);\n        /**\n         * Creates an image asset change request.\n         *\n         * @param { Context } context - Context of the ability instance.\n         * @param { string } fileUri - Data source of the image asset, which is specified by a URI in the application sandbox directory.\n         * @returns { MediaAssetChangeRequest } - Returns a MediaAssetChangeRequest instance\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900002 - The file corresponding to the URI is not in the app sandbox.\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @static\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 11\n         */\n        /**\n         * Creates an image asset change request.\n         *\n         * @param { Context } context - Context of the ability instance.\n         * @param { string } fileUri - Data source of the image asset, which is specified by a URI in the application sandbox directory.\n         * @returns { MediaAssetChangeRequest } - Returns a MediaAssetChangeRequest instance\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900002 - The file corresponding to the URI is not in the app sandbox.\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @static\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 12\n         */\n        static createImageAssetRequest(context: Context, fileUri: string): MediaAssetChangeRequest;\n        /**\n         * Creates a video asset change request.\n         *\n         * @param { Context } context - Context of the ability instance.\n         * @param { string } fileUri - Data source of the video asset, which is specified by a URI in the application sandbox directory.\n         * @returns { MediaAssetChangeRequest } - Returns a MediaAssetChangeRequest instance\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900002 - The file corresponding to the URI is not in the app sandbox.\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @static\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 11\n         */\n        static createVideoAssetRequest(context: Context, fileUri: string): MediaAssetChangeRequest;\n        /**\n         * Create an asset change request based on the file type and filename extension.\n         *\n         * @param { Context } context - Context of the ability instance.\n         * @param { PhotoType } photoType - Type of the file to create, which can be IMAGE or VIDEO.\n         * @param { string } extension - File name extension, for example, 'jpg'.\n         * @param { CreateOptions } [options] - Options for creating the image or video asset, for example, {title: 'testPhoto'}.\n         * @returns { MediaAssetChangeRequest } - Returns a MediaAssetChangeRequest instance\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @static\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 11\n         */\n        static createAssetRequest(context: Context, photoType: PhotoType, extension: string, options?: CreateOptions): MediaAssetChangeRequest;\n        /**\n         * Deletes media assets. This API uses a promise to return the result. The deleted assets are moved to the trash.\n         *\n         * @permission ohos.permission.WRITE_IMAGEVIDEO\n         * @param { Context } context - Context of the ability instance.\n         * @param { Array<PhotoAsset> } assets - Array of assets to delete.\n         * @returns { Promise<void> } - Returns void\n         * @throws { BusinessError } 201 - Permission denied\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @static\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 11\n         */\n        static deleteAssets(context: Context, assets: Array<PhotoAsset>): Promise<void>;\n        /**\n         * Deletes media assets. This API uses a promise to return the result. The deleted assets are moved to the trash.\n         *\n         * @permission ohos.permission.WRITE_IMAGEVIDEO\n         * @param { Context } context - Context of the ability instance.\n         * @param { Array<string> } uriList - URIs of the media files to delete.\n         * @returns { Promise<void> } - Returns void\n         * @throws { BusinessError } 201 - Permission denied\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 14000002 - The uri format is incorrect or does not exist.\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @static\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 11\n         */\n        static deleteAssets(context: Context, uriList: Array<string>): Promise<void>;\n        /**\n         * Get the asset.\n         *\n         * @returns { PhotoAsset } - Returns the asset\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 11\n         */\n        /**\n         * Obtains the asset in this asset change request.\n         *\n         * @returns { PhotoAsset } - Returns the asset\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 12\n         */\n        getAsset(): PhotoAsset;\n        /**\n         * Sets the media asset title.\n         *\n         * @param { string } title - Title to set.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 11\n         */\n        /**\n         * Sets the media asset title.\n         *\n         * @param { string } title - Title to set.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 12\n         */\n        setTitle(title: string): void;\n        /**\n         * Obtains the handler used for writing a file to cache.\n         *\n         * @permission ohos.permission.WRITE_IMAGEVIDEO\n         * @returns { Promise<number> } Returns the write cache handler\n         * @throws { BusinessError } 201 - Permission denied\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @throws { BusinessError } 14000016 - Operation Not Support\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 11\n         */\n        getWriteCacheHandler(): Promise<number>;\n        /**\n         * Adds a resource using fileUri.\n         *\n         * @param { ResourceType } type - Type of the resource to add.\n         * @param { string } fileUri - Data source of the resource to be added, which is specified by a URI in the application sandbox directory.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 13900002 - The file corresponding to the URI is not in the app sandbox.\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @throws { BusinessError } 14000016 - Operation Not Support\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 11\n         */\n        addResource(type: ResourceType, fileUri: string): void;\n        /**\n         * Adds a resource using ArrayBuffer data.\n         *\n         * @param { ResourceType } type - Type of the resource to add.\n         * @param { ArrayBuffer } data - Data of the resource to add.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @throws { BusinessError } 14000016 - Operation Not Support\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 11\n         */\n        addResource(type: ResourceType, data: ArrayBuffer): void;\n        /**\n         * Saves the photo taken by the camera.\n         *\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @throws { BusinessError } 14000016 - Operation Not Support\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 12\n         */\n        saveCameraPhoto(): void;\n        /**\n         * Saves the photo taken by the camera.\n         *\n         * @param { ImageFileType } imageFileType - File type of the photo to save.\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @throws { BusinessError } 14000016 - Operation Not Support\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 13\n         */\n        saveCameraPhoto(imageFileType: ImageFileType): void;\n        /**\n         * Discards the photo taken by the camera.\n         *\n         * @throws { BusinessError } 14000011 - Internal system error\n         * @throws { BusinessError } 14000016 - Operation Not Support\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 12\n         */\n        discardCameraPhoto(): void;\n        /**\n         * Sets the orientation of this image.\n         *\n         * @param { number } orientation - Rotation angle of the image to set. The value can only be 0, 90, 180, or 270.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 14000011 - Internal system error\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 15\n         */\n        setOrientation(orientation: number): void;\n    }\n    /**\n     * Defines the class of media album change request.\n     *\n     * @implements MediaChangeRequest\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @since 11\n     */\n    class MediaAlbumChangeRequest implements MediaChangeRequest {\n        /**\n         * The constructor to create a MediaAlbumChangeRequest instance.\n         *\n         * @param { Album } album - Specify which album to change\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 11\n         */\n        constructor(album: Album);\n        /**\n         * Obtains the album in the current album change request.\n         *\n         * @returns { Album } - Returns the album\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 11\n         */\n        getAlbum(): Album;\n        /**\n         * Sets the album name.\n         *\n         * @param { string } name - Album name to set.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 11\n         */\n        setAlbumName(name: string): void;\n        /**\n         * Add assets to the album.\n         *\n         * @param { Array<PhotoAsset> } assets - Array of assets to add.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @throws { BusinessError } 14000016 - Operation Not Support\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 11\n         */\n        addAssets(assets: Array<PhotoAsset>): void;\n        /**\n         * Removes assets from the album.\n         *\n         * @param { Array<PhotoAsset> } assets - Array of assets to remove.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @throws { BusinessError } 14000016 - Operation Not Support\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @since 11\n         */\n        removeAssets(assets: Array<PhotoAsset>): void;\n    }\n    /**\n     * Provides APIs for managing a moving photo instance.\n     *\n     * @interface MovingPhoto\n     * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n     * @atomicservice\n     * @since 12\n     */\n    interface MovingPhoto {\n        /**\n         * Requests the image data and video data of this moving photo and writes them to the specified URIs, respectively.\n         *\n         * @permission ohos.permission.READ_IMAGEVIDEO\n         * @param { string } imageFileUri - URI to which the image data of the moving photo is to be written.\n         * @param { string } videoFileUri - URI to which the video data of the moving photo is to be written.\n         * @returns { Promise<void> } Returns void\n         * @throws { BusinessError } 201 - Permission denied\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 12\n         */\n        requestContent(imageFileUri: string, videoFileUri: string): Promise<void>;\n        /**\n         * Requests the moving photo content of the specified resource type and writes it to the specified URI.\n         *\n         * @permission ohos.permission.READ_IMAGEVIDEO\n         * @param { ResourceType } resourceType - Resource type of the moving photo content to request.\n         * @param { string } fileUri - URI to which the moving photo content is to be written.\n         * @returns { Promise<void> } Returns void\n         * @throws { BusinessError } 201 - Permission denied\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 12\n         */\n        requestContent(resourceType: ResourceType, fileUri: string): Promise<void>;\n        /**\n         * Requests the moving photo content of the specified resource type and returns it in ArrayBuffer format.\n         *\n         * @permission ohos.permission.READ_IMAGEVIDEO\n         * @param { ResourceType } resourceType - Resource type of the moving photo content to request.\n         * @returns { Promise<ArrayBuffer> } Returns array buffer of the content\n         * @throws { BusinessError } 201 - Permission denied\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 12\n         */\n        requestContent(resourceType: ResourceType): Promise<ArrayBuffer>;\n        /**\n         * Obtains the URI of this moving photo.\n         *\n         * @returns { string } Returns uri of the moving photo\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 14000011 - System inner fail\n         * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core\n         * @atomicservice\n         * @since 12\n         */\n        getUri(): string;\n    }\n}\nexport default photoAccessHelper;\n",
}
export default FILE;